<template>
  <div class="title-section">
    <div class="title-content">
      <h2 class="main-title">与100万用户发现生活</h2>
      <div class="title-decoration">
        <span class="decoration-text">🌱</span>
      </div>
    </div>
  </div>
</template>

<script setup>
// 标题区域组件
</script>

<style scoped>
.title-section {
  padding: 20px 16px 16px;
  text-align: center;
}

.title-content {
  position: relative;
  display: inline-block;
}

.main-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.title-decoration {
  position: absolute;
  top: -8px;
  right: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decoration-text {
  font-size: 16px;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); opacity: 1; }
  50% { transform: translateY(-4px); opacity: 0.8; }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .title-section {
    padding: 16px 12px 12px;
  }
  
  .main-title {
    font-size: 18px;
  }
  
  .title-decoration {
    top: -6px;
    right: -12px;
  }
  
  .decoration-text {
    font-size: 14px;
  }
}
</style>
